package com.goa.mapper;

import com.goa.entity.CurrentVoltage;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CurrentVoltageMapper {
    //根据时间戳范围查询电压电流数据
    List<CurrentVoltage> selectCurrentVoltageByTime(@Param("deviceId") String deviceId, @Param("timestamp") long timestamp, @Param("timestamp1") long timestamp1);

    //查询某一天24个小时整点附近的电流电压值
    List<CurrentVoltage> selectCurrentVoltageByTimeOnHour(String deviceId, String startTime, String endTime);

    //根据时间范围查询电压电流数据
    List<CurrentVoltage> getAbnormalCurrentVoltage(String deviceId, String startTime, String endTime);
}
